import { createAction } from '@ngrx/store';
import { createReducer, on } from '@ngrx/store';


//类型
export interface AppState {
    name: string;
}

//stats
export const initialAppState: AppState = {
    name: 'neurogin'
};

//action
export const setAppName = createAction('[Login Component] setAppName');

//reducer
const _appReducer = createReducer(initialAppState,
    on(setAppName, state => state),
);

export function appReducer(state, action) {
    return _appReducer(state, action);
}





